//
//  LcTypeAdapter.h
//  18Birdies
//
//  Created by Lc on 15/3/15.
//  Copyright (c) 2015年 Lc. All rights reserved.
//

#import <Foundation/Foundation.h>

@class LcJson;
@protocol LcTypeAdapter<NSObject>

@required
/*
 @returns jsonElement(NSString, NSNumber, NSDictionary, or NSArray)
 */
- (id)serialize:(id)object
 ofDeclaredType:(NSString*)declaredType
     withLcJson:(LcJson*)lcJson;
/*
 @param jsonElement is NSString, NSNumber, NSDictionary, or NSArray
 */
- (id)deserialize:(id)jsonElement
           ofType:(NSString*)type
       withLcJson:(LcJson*)lcJson;

@end
